/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Roles  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Roles";
	public static final String ALIAS_APPLICATION_ID = "applicationId";
	public static final String ALIAS_ROLE_ID = "roleId";
	public static final String ALIAS_ROLE_NAME = "roleName";
	public static final String ALIAS_LOWER_ROLE_NAME = "lowerRoleName";
	public static final String ALIAS_DESCRIPTION = "description";
	
	 
	 
	//columns START
	private java.lang.Object applicationId;
	private java.lang.Integer roleId;
	private java.lang.Object roleName;
	private java.lang.Object lowerRoleName;
	private java.lang.Object description;
	//columns END

	public Roles(){
	}

	public Roles(
		java.lang.Integer roleId
	){
		this.roleId = roleId;
	} 
		 
	public void setApplicationId(java.lang.Object value) {
		this.applicationId = value;
	}
	
	public java.lang.Object getApplicationId() {
		return this.applicationId;
	}
		 
	public void setRoleId(java.lang.Integer value) {
		this.roleId = value;
	}
	
	public java.lang.Integer getRoleId() {
		return this.roleId;
	}
		 
	public void setRoleName(java.lang.Object value) {
		this.roleName = value;
	}
	
	public java.lang.Object getRoleName() {
		return this.roleName;
	}
		 
	public void setLowerRoleName(java.lang.Object value) {
		this.lowerRoleName = value;
	}
	
	public java.lang.Object getLowerRoleName() {
		return this.lowerRoleName;
	}
		 
	public void setDescription(java.lang.Object value) {
		this.description = value;
	}
	
	public java.lang.Object getDescription() {
		return this.description;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ApplicationId",getApplicationId())
			.append("RoleId",getRoleId())
			.append("RoleName",getRoleName())
			.append("LowerRoleName",getLowerRoleName())
			.append("Description",getDescription())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getRoleId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Roles == false) return false;
		if(this == obj) return true;
		Roles other = (Roles)obj;
		return new EqualsBuilder()
			.append(getRoleId(),other.getRoleId())
			.isEquals();
	}
}

